package org.geektimes.configuration.microprofile.source;

import java.util.Map;

/**
 * @Author: jipeng
 * @Description: java 加载系统环境变量
 * @Date: Created in 2021/3/18 7:51
 */
public class JavaSystemEnvironmentConfigSource extends MapBesedConfigSource {

    public JavaSystemEnvironmentConfigSource() {
        super("Java OS Environment  properties", 300);
    }

    @Override
    protected void prepareConfigData(Map configData) throws Throwable {
        configData.putAll(System.getenv());
    }
}
